package com.atguigu.mailservice.controller;


import com.atguigu.commonutils.R;
import com.atguigu.mailservice.service.MsmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/edumsm/msm")
@CrossOrigin
public class MSmController {

    @Autowired
    MsmService msmService;

    @GetMapping("send/{email}")
    public R sendEmail(@PathVariable String userName, String password, String userEmail) {

        msmService.send(userName, password, userEmail);


        return R.ok();
    }
}
